<?php

namespace App\Constants;

class RecommendedGradeCode
{
    /**
     * 近期有效时间
     */
    const ACTIVE_DAY = 30;

    /**
     * 默认时间
     */
    const MALE_DEFAULT_DAY = 3;

    const MALE_DEFAULT_GRADE = self::MALE_TOURIST;

    const FEMALE_DEFAULT_GRADE = self::FEMALE_NEWCOMER;

    /**
     * 男生-游客
     */
    const MALE_TOURIST = 1;

    /**
     * 男生-下游
     */
    const MALE_DOWNSTREAM = 2;

    /**
     * 男生-中游
     */
    const MALE_MIDSTREAM = 3;

    /**
     * 男生-上游
     */
    const MALE_UPSTREAM = 4;


    /**
     * 女生-新人
     */
    const FEMALE_NEWCOMER = 5;


    /**
     * 女生-推荐/普通
     */
    const FEMALE_POTENTIAL = 6;

    /**
     * 女生-潜力
     */
    const FEMALE_RECOMMEND = 7;

    /**
     * 女生-优选
     */
    const FEMALE_OPTIMIZE = 8;

    /**
     * 男生等级代号
     */
    const MALE_TOURIST_CODE = 'A';
    const MALE_DOWNSTREAM_CODE = 'B';
    const MALE_MIDSTREAM_CODE = 'C';
    const MALE_UPSTREAM_CODE = 'D';

    /**
     * 男士等级 type_id == code
     */
    const MALE_GRADE_ARRAY = [
        self::MALE_TOURIST => self::MALE_TOURIST_CODE,
        self::MALE_DOWNSTREAM => self::MALE_DOWNSTREAM_CODE,
        self::MALE_MIDSTREAM => self::MALE_MIDSTREAM_CODE,
        self::MALE_UPSTREAM => self::MALE_UPSTREAM_CODE
    ];

    /**
     * 男生等级代号
     */
    const FEMALE_NEWCOMER_CODE = 'H';
    const FEMALE_POTENTIAL_CODE = 'G';
    const FEMALE_RECOMMEND_CODE = 'F';
    const FEMALE_OPTIMIZE_CODE = 'E';

    /**
     * 女生等级
     */
    const FEMALE_GRADE_ARRAY = [
        self::FEMALE_NEWCOMER => self::FEMALE_NEWCOMER_CODE,
        self::FEMALE_POTENTIAL => self::FEMALE_POTENTIAL_CODE,
        self::FEMALE_RECOMMEND => self::FEMALE_RECOMMEND_CODE,
        self::FEMALE_OPTIMIZE => self::FEMALE_OPTIMIZE_CODE
    ];

    const GRADE_ARRAY = [
        self::MALE_TOURIST => self::MALE_TOURIST_CODE,
        self::MALE_DOWNSTREAM => self::MALE_DOWNSTREAM_CODE,
        self::MALE_MIDSTREAM => self::MALE_MIDSTREAM_CODE,
        self::MALE_UPSTREAM => self::MALE_UPSTREAM_CODE,
        self::FEMALE_NEWCOMER => self::FEMALE_NEWCOMER_CODE,
        self::FEMALE_POTENTIAL => self::FEMALE_POTENTIAL_CODE,
        self::FEMALE_RECOMMEND => self::FEMALE_RECOMMEND_CODE,
        self::FEMALE_OPTIMIZE => self::FEMALE_OPTIMIZE_CODE
    ];

    const FIX_OPERATE = 1;
    const AUTO_OPERATE = 2;
}